Allocates and fills a buffer with text from the start of the document.
@param sci Scintilla widget.
@param buffer_len Buffer length to allocate, including the terminating
null char, e.g. sci_get_length() + 1. Alternatively use @c -1 to get all
text (since Geany 1.23).
@return A copy of the text. Should be freed when no longer needed.
Allocates and fills a buffer with text from the start of the document. @param sci Scintilla widget. @param buffer_len Buffer length to allocate, including the terminating null char, e.g. sci_get_length() + 1. Alternatively use @c -1 to get all text (since Geany 1.23). @return A copy of the text. Should be freed when no longer needed.
@since 1.23 (0.17)